﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="View.aspx.cs" Inherits="milanov.View" %>
<%-- Thom --%>
<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
        <h1><%: Title %></h1>
        <asp:Label ID="OrdernrLabel" runat="server" Text=""></asp:Label>
    <asp:GridView ID="CompletedGrid" runat="server" AutoGenerateColumns="False" ShowFooter="True"
            CellPadding="10" DataKeyNames="FileID" PageSize="100" Font-Bold="False"
            Font-Names="Verdana" Font-Size="Small" BorderColor="#CCCCCC" BorderStyle="None" 
            BackColor="White" BorderWidth="1px" ForeColor="Black" GridLines="Horizontal" Height="20px" Width="900px">
            <Columns>
                <asp:BoundField DataField="Name" HeaderText="Naam" SortExpression="Name" />
                <asp:BoundField DataField="Comment" HeaderText="Omschrijving" SortExpression="" />
                <asp:TemplateField SortExpression="Filesize">
                    <ItemTemplate>
                        <asp:Label ID="Label4" runat="server" Text='<%#(Convert.ToDecimal(Eval("Filesize")) / 1024).ToString("0,0") + " kb" %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField SortExpression="">
                    <ItemTemplate>
                        <asp:Label ID="Label3" runat="server" Text='<%#Eval("Width")+ "x" + Eval("Height")%>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Preview">
                    <ItemTemplate>
                        <div class="image1">
                            <a href="<%# "/Pictures/demo/demo_" + Eval("Filename") %>" data-lightbox="image-1">
                                <img src="<%# "/Pictures/demo/demo_" + Eval("Filename") %>" height="50" width="50" />
                            </a>
                        </div>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Download" ItemStyle-HorizontalAlign="Center">
                    <ItemTemplate>
                        <asp:HyperLink ID="RemovefromCart" runat="server"  ImageUrl="~/Images/download.png" ToolTip="Download deze foto"
                            NavigateUrl='<%# Eval("FileID", @"~/Download.aspx?id={0}") %>'
                            Text=''>
                        </asp:HyperLink>
                    </ItemTemplate>
                    <FooterTemplate>
                        <asp:Label ID="Totalp" Text="" runat="server"></asp:Label>
                    </FooterTemplate>
                </asp:TemplateField>
            </Columns>
            <FooterStyle BackColor="#444444" ForeColor="White" />
            <HeaderStyle BackColor="#333333" Font-Bold="False" ForeColor="White" />
            <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
            <SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#F7F7F7" />
            <SortedAscendingHeaderStyle BackColor="#4B4B4B" />
            <SortedDescendingCellStyle BackColor="#E5E5E5" />
            <SortedDescendingHeaderStyle BackColor="#242121" />

        </asp:GridView>
</asp:Content>